<?php 
class DbController extends Henry_Controller_Action
{
 
    public function init()
    {
        parent::init();
    }
    
    public function indexAction()
    {    	
    	$requestOb = $this->getRequest(); 
       	$params = $requestOb->getParams();
        if($requestOb->isPost())
        {     
        	$sql = $params['sql_query'];
        	$db = Zend_Registry::get('DB');
        	if ($db->query($sql))
        	{
        		$this->view->assign('message',array('Run query successful'));	
        	}        	
        }	       
    }	

}

?>